cmake_minimum_required(VERSION 3.15)

# xxxxxxxxxxxxxxxxxxx project root
project(monad_deepseek LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)

# ----- fmt lib
find_package(fmt CONFIG REQUIRED)
# find_package(spdlog REQUIRED)

# =================== 测试 executable
set(MY_EXE_TARGET ${PROJECT_NAME})
add_executable(${MY_EXE_TARGET}
    main.cpp
    monad.hpp
)
target_include_directories(${MY_EXE_TARGET}
    PRIVATE ${MY_COMMON_DIR}
)
target_link_libraries(${MY_EXE_TARGET}
    PRIVATE fmt::fmt
)

# ----- 拷贝依赖的 DLL 到构建目录
#my_cp_dlls(${MY_EXE_TARGET})

# =================== Visual Studio 设置
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ${MY_EXE_TARGET})

# =================== 安装目标
# install(TARGETS
# ${mypy11} DESTINATION bin
# )